//
//  MidTools.h
//  A段项目,漫画
//
//  Created by dllo on 15/4/28.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AFHTTPRequestOperationManager.h"
#import "cartoonDestai.h"
//push  1
@protocol PushVC <NSObject>
- (void)pushWithIndex:(NSInteger )index;
@end
//回收抽屉  2
@protocol closeTools <NSObject>
- (void)closeTool;
@end
//夜间模式  3
@protocol NightModel <NSObject>
- (void)modexChangeByNow:(BOOL )isNight;
@end
//清除缓存  4
@protocol wipeCache <NSObject>
- (void)wipe;
@end
//搜索请求数据  5
@protocol searchCartoon <NSObject>
- (void)searchCartoon;
@end
//浏览记录显示  6
@protocol showSearchMark <NSObject>
- (void)makeSearchMarkWithNow:(BOOL)isShow;
@end
//放弃第一响应者 71
@protocol resignFirst1 <NSObject>
- (void)resignFirst1;
@end
//放弃第一响应者 72
@protocol resignFirst2 <NSObject>
- (void)resignFirst2;
@end
//传值协议  81
@protocol sendValue1 <NSObject>
- (void)getValue1:(NSString *)mark;
@end
//传值协议  82
@protocol sendValue2 <NSObject>
- (void)getValue2:(NSString *)mark;
@end
//显示浏览记录 9
@protocol showThroughMark <NSObject>
- (void)showThrough;
@end
//改变tabbar  10
@protocol changeTabbar <NSObject>
- (void)upDate;
@end
//网络监听  11
@protocol netWorking <NSObject>
@end
@interface MidTools : UIView

@property(nonatomic, assign)id<PushVC>delegate1;
@property(nonatomic, assign)id<closeTools>delegate2;
@property(nonatomic, assign)id<NightModel>delegate3;
@property(nonatomic, assign)id<wipeCache>delegate4;
@property(nonatomic, assign)id<searchCartoon>delegate5;
@property(nonatomic, assign)id<showSearchMark>delegate6;
@property(nonatomic, assign)id<resignFirst1>delegate71;
@property(nonatomic, assign)id<resignFirst2>delegate72;
@property(nonatomic, assign)id<sendValue1>delegate81;
@property(nonatomic, assign)id<sendValue2>delegate82;
//显示浏览记录
@property(nonatomic, assign)id<showThroughMark>delegate9;
@property(nonatomic, assign)id<changeTabbar>delegate10;
@property(nonatomic, assign)NSInteger searchID;
@property(nonatomic, retain)NSMutableArray *result;
@property(nonatomic, assign)BOOL isFinish;
//搜索记录
@property(nonatomic, retain)NSMutableArray *searchMark;
@property(nonatomic, assign)BOOL isSearchMarkShow;
//收藏添加
@property(nonatomic, assign)NSInteger addSave;
+ (instancetype)shareMidTools;
//搜索
- (void)searchByUrl:(NSString *)url;

@end
